/**
 * Created by IntelliJ IDEA.
 * User: Liu Yuhong
 * Date: 12-10-25
 * Time: 下午5:05
 * Subpage tender page functions.
 */

$(function() {

    var menuGroups = [
        {
            'menuId': "tenderMenu",
            'menuTitle': getLanMsg("0ec22400-000024"),//"发货排程",
            'iconImg': null,
            'needShow': bModuleEBVSCOrSCM_PU,
            'items': [
                {
                    'itemId': "tenderMenuItem1",
                    'itemUrl': "/ebvp/other/goQryPageFromList?menuid=36",
                    'itemName': getLanMsg("0ec22400-000025"), //"我的发货通知",
                    'needShow': bModuleSCM_PU,
                    'callback': function() { window.location = "/ebvp/other/goQryPageFromList?menuid=36"; return false; }
                },
                {
                    'itemId': "tenderMenuItem2",
                    'itemUrl': "/ebvp/other/sendNoticeList",
                    'itemName': getLanMsg("0ec22400-000027"),//"查询发货通知",
                    'needShow': bModuleSCM_PU,
                    'callback':function(){window.location = "/ebvp/other/sendNoticeList";  return false;}
                   
                    
                },
                {
                    'itemId': "tenderMenuItem3",
                    'itemUrl': "/ebvp/other/sendPlanList?menuid=37",
                    'itemName': getLanMsg("0ec22400-000026"),//"发货计划维护",
                    'needShow': bModuleSCM_PU,
                    'callback':function(){window.location = "/ebvp/other/sendPlanList?menuid=37";  return false;}
                   
                    
                },
                {
                    'itemId': "tenderMenuItem4",
                    'itemUrl': "/ebvp/schedulecoll/paichengconller/scheduleconfirm",
                    'itemName': getLanMsg("0ec22400-000028"),//"排程计划确认",
                    'needShow': bModuleEBVSC,
                    'callback':function(){window.location = "/ebvp/schedulecoll/paichengconller/scheduleconfirm"; return false;}
                   
                    
                },
                {
                    'itemId': "tenderMenuItem5",
                    'itemUrl': "/ebvp/schedulecoll/scheduleDetail",
                    'itemName': getLanMsg("0ec22400-000190"),//"排程明细统计表",
                    'needShow': bModuleEBVSC,
                    'callback':function(){window.location = "/ebvp/schedulecoll/scheduleDetail"; return false;}
                   
                    
                },
                {
                    'itemId': "tenderMenuItem6",
                    'itemUrl': "/ebvp/schedulecoll/scheHisProdCount",
                    'itemName': getLanMsg("0ec22400-000191"),//"排程历史物料汇总表",
                    'needShow': bModuleEBVSC,
                    'callback':function(){window.location = "/ebvp/schedulecoll/scheHisProdCount"; return false;}
                   
                    
                },
                {
                    'itemId': "tenderMenuItem7",
                    'itemUrl': "/ebvp/schedulecoll/scheHistoryDetail",
                    'itemName': getLanMsg("0ec22400-000192"),//"排程历史明细表",
                    'needShow': bModuleEBVSC,
                    'callback':function(){window.location = "/ebvp/schedulecoll/scheHistoryDetail"; return false;}
                   
                    
                },
            ]
        }
    ];
    
    /* 左侧菜单栏 */
    $( "#columnLeft" ).UIColumnMenu({
        'menuGroups': menuGroups,
        'menuHeight': heigth,
        'singleGroup': true
    });
    
    $(function() {	
    	if(i==1){
			$( "#tenderMenuItem1" ).parents("ul").find(".current").removeClass("current");
			$( "#tenderMenuItem1" ).addClass("current");
    	}
    	if(i==2){
    		$( "#tenderMenuItem2" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem2" ).addClass("current");
    	}
    	if(i==3){
    		$( "#tenderMenuItem3" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem3" ).addClass("current");
    	}
    	if(i==4){
    		$( "#tenderMenuItem4" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem4" ).addClass("current");
    	}
    	if(i==5){
    		$( "#tenderMenuItem5" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem5" ).addClass("current");
    	}
    	if(i==6){
    		$( "#tenderMenuItem6" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem6" ).addClass("current");
    	}
    	if(i==7){
    		$( "#tenderMenuItem7" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem7" ).addClass("current");
    	}
	 });
    
     

});
